﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Runda.EShop.Common.Utility;

namespace Runda.EShop.Web.Customer
{
    public partial class MyProductList :BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lnkbtnSync.Attributes.Add("onclick", "return OnOpenWinCustom('ProductRegister.aspx','注册新品',800,600);");
            if (!IsPostBack)
            {
                if (base.User.Identity.LoginUser.EntType == (int)EnumHelper.EnterpriseType.Agent)
                {
                    hidURL.Value = "ProductListByCateForAgent.aspx";
                }
                else
                {
                    hidURL.Value = "ProductListByCateForTerminal.aspx";
                }
            }
        }
    }
}